gdk: Add gdk_toplevel_inhibit_system_shortcuts API
authorOlivier Fourdan <ofourdan@redhat.com>
Fri, 20 Mar 2020 14:17:41 +0000 (15:17 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Mon, 30 Mar 2020 16:25:36 +0000 (18:25 +0200)
commit3e1f59af61e339cfa990c2f776aa0c625b3377f2
tree73d0c4c0eeaf98b6b2735af52038b065f3905371
parentda47ccaf3c3d4353f6fa4ac813aeb689a1d2d20a
gdk: Add gdk_toplevel_inhibit_system_shortcuts API

With the removal of grabs from the public API, we need a replacement API
to let applications bypass system keyboard shortcuts.

A typical use case for this API is remote desktop or virtual machine
viewers which need to inhibit the default system keyboard shortcuts so
that the remote session or virtual host gets those instead of the local
environment.

Close: https://gitlab.gnome.org/GNOME/gtk/issues/982
gdk/gdksurfaceprivate.h
gdk/gdktoplevel.c
gdk/gdktoplevel.h
gdk/gdktoplevelprivate.h
tests/meson.build
tests/testinhibitshortcuts.c [new file with mode: 0644]